let spinning =false
function chou(){
    setTimeout(()=>{
        var True =document.getElementById('modulSpinner')
        True.style.display='block'
    },3200)
}
function openService() {
    var window1 = document.getElementById('textList');
    window1.style.display = 'block';
}

function openService2() {
    var window1 = document.getElementById('textList2');
    window1.style.display = 'block';
}
function closeWindow() {
    var window1 = document.getElementById('textList');
    var window2 = document.getElementById('textList2');
    var look = document.getElementById('look');
    if (window1) {
        window1.style.display = 'none';
    }
    if (window2) {
        window2.style.display = 'none';
    }
    if (look) {
        look.style.display = 'none';
    }
}
function toGet() {
    let str = $('#mobile').val().trim();
    if (str) {
        var myreg = /^1([3456789])\d{9}$/;
        if (!myreg.test(str)) {
            alert('手机号格式不正确');
        } else {
            const checkbox = document.getElementById('agree');
            if(checkbox.checked){
                const params = window.location.search;  // 获取当前页面的URL参数
                let newUrl = 'newIndex2bianxianmao.html';
                let encodedPhone = btoa(str);
                if (params) {
                    newUrl += params + '&phone=' + encodeURIComponent(encodedPhone);
                } else {
                    newUrl += '?phone=' + encodeURIComponent(encodedPhone);
                }
                window.location.href = newUrl;
            }else{
                alert('请先勾选下方服务条款');
            }

        }
    } else {
        alert('请先输入手机号');
    }
}
function toGet2() {
    window.location.href = '/lq';
}
function statistics(){
    $.ajax({
        type: 'GET',
        url: httpUrl+'/api/v1/open/statisticsRequests',
        success: function(data) {

        },
        error: function(xhr, status, error) {
        }
    });

}
statistics()
chou()


